icon theme: Improve loading of unthemed files
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jan 2016 22:27:35 +0000 (17:27 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 29 Jan 2016 22:27:35 +0000 (17:27 -0500)
commit001598a8211e02dbbebd1bf71c51d4b96bdb9bef
tree07c4d17dd00bc652eac74f1945faafdfbb6cb605
parent68edc67bdead2f1ad3224b3f9ff2e07c202fc626
icon theme: Improve loading of unthemed files

When creating icon info objects for unthemed files, we don't
really have a nominal size, so we pass 0 to mean 'load at
original size'. However, this is not what was happening.
To make this possible, add variants of some pixbuf loading
functions that take a scale factor instead of a desired size,
and use those when we don't have a nominal size.
gtk/Makefile.am
gtk/gdkpixbufutils.c [new file with mode: 0644]
gtk/gdkpixbufutilsprivate.h [new file with mode: 0644]
gtk/gtkicontheme.c